package com.mapper.sys;

import com.entity.sys.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 用户角色关联 Mapper 接口
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    int insertBatch(List<SysUserRole> list);

    List<SysUserRole.UserRoleVo> getRoleByUserId(@Param("userId") String userId);
}
